Optimal. Leaf size=309 \[ \frac {4 a b e n \sqrt [3]{x}}{d}+\frac {8 b^2 e^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right )}{d^{3/2}}+\frac {4 i b^2 e^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right )^2}{d^{3/2}}-\frac {8 b^2 e^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \log \left (2-\frac {2 \sqrt {e}}{\sqrt {e}-i \sqrt {d} \sqrt [3]{x}}\right )}{d^{3/2}}+\frac {4 b^2 e n \sqrt [3]{x} \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )}{d}-\frac {4 b e^{3/2} n \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{d^{3/2}}+x \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2+\frac {4 i b^2 e^{3/2} n^2 \text {Li}_2\left (-1+\frac {2 \sqrt {e}}{\sqrt {e}-i \sqrt {d} \sqrt [3]{x}}\right )}{d^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.29, antiderivative size = 309, normalized size of antiderivative = 1.00, number of steps
used = 14, number of rules used = 13, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.650, Rules used = {2501, 2507,
2521, 2498, 269, 211, 2520, 12, 266, 6820, 5044, 4988, 2497} \begin {gather*} \frac {4 i b^2 e^{3/2} n^2 \text {PolyLog}\left (2,-1+\frac {2 \sqrt {e}}{\sqrt {e}-i \sqrt {d} \sqrt [3]{x}}\right )}{d^{3/2}}-\frac {4 b e^{3/2} n \text {ArcTan}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{d^{3/2}}+x \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2+\frac {4 a b e n \sqrt [3]{x}}{d}+\frac {4 i b^2 e^{3/2} n^2 \text {ArcTan}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right )^2}{d^{3/2}}+\frac {8 b^2 e^{3/2} n^2 \text {ArcTan}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right )}{d^{3/2}}-\frac {8 b^2 e^{3/2} n^2 \text {ArcTan}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \log \left (2-\frac {2 \sqrt {e}}{\sqrt {e}-i \sqrt {d} \sqrt [3]{x}}\right )}{d^{3/2}}+\frac {4 b^2 e n \sqrt [3]{x} \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 211
Rule 266
Rule 269
Rule 2497
Rule 2498
Rule 2501
Rule 2507
Rule 2520
Rule 2521
Rule 4988
Rule 5044
Rule 6820
Rubi steps
\begin {align*} \int \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2 \, dx &=3 \text {Subst}\left (\int x^2 \left (a+b \log \left (c \left (d+\frac {e}{x^2}\right )^n\right )\right )^2 \, dx,x,\sqrt [3]{x}\right )\\ &=x \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2+(4 b e n) \text {Subst}\left (\int \frac {a+b \log \left (c \left (d+\frac {e}{x^2}\right )^n\right )}{d+\frac {e}{x^2}} \, dx,x,\sqrt [3]{x}\right )\\ &=x \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2+(4 b e n) \text {Subst}\left (\int \left (\frac {a+b \log \left (c \left (d+\frac {e}{x^2}\right )^n\right )}{d}-\frac {e \left (a+b \log \left (c \left (d+\frac {e}{x^2}\right )^n\right )\right )}{d \left (e+d x^2\right )}\right ) \, dx,x,\sqrt [3]{x}\right )\\ &=x \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2+\frac {(4 b e n) \text {Subst}\left (\int \left (a+b \log \left (c \left (d+\frac {e}{x^2}\right )^n\right )\right ) \, dx,x,\sqrt [3]{x}\right )}{d}-\frac {\left (4 b e^2 n\right ) \text {Subst}\left (\int \frac {a+b \log \left (c \left (d+\frac {e}{x^2}\right )^n\right )}{e+d x^2} \, dx,x,\sqrt [3]{x}\right )}{d}\\ &=\frac {4 a b e n \sqrt [3]{x}}{d}-\frac {4 b e^{3/2} n \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{d^{3/2}}+x \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2+\frac {\left (4 b^2 e n\right ) \text {Subst}\left (\int \log \left (c \left (d+\frac {e}{x^2}\right )^n\right ) \, dx,x,\sqrt [3]{x}\right )}{d}-\frac {\left (8 b^2 e^3 n^2\right ) \text {Subst}\left (\int \frac {\tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {e}}\right )}{\sqrt {d} \sqrt {e} \left (d+\frac {e}{x^2}\right ) x^3} \, dx,x,\sqrt [3]{x}\right )}{d}\\ &=\frac {4 a b e n \sqrt [3]{x}}{d}+\frac {4 b^2 e n \sqrt [3]{x} \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )}{d}-\frac {4 b e^{3/2} n \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{d^{3/2}}+x \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2+\frac {\left (8 b^2 e^2 n^2\right ) \text {Subst}\left (\int \frac {1}{\left (d+\frac {e}{x^2}\right ) x^2} \, dx,x,\sqrt [3]{x}\right )}{d}-\frac {\left (8 b^2 e^{5/2} n^2\right ) \text {Subst}\left (\int \frac {\tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {e}}\right )}{\left (d+\frac {e}{x^2}\right ) x^3} \, dx,x,\sqrt [3]{x}\right )}{d^{3/2}}\\ &=\frac {4 a b e n \sqrt [3]{x}}{d}+\frac {4 b^2 e n \sqrt [3]{x} \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )}{d}-\frac {4 b e^{3/2} n \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{d^{3/2}}+x \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2+\frac {\left (8 b^2 e^2 n^2\right ) \text {Subst}\left (\int \frac {1}{e+d x^2} \, dx,x,\sqrt [3]{x}\right )}{d}-\frac {\left (8 b^2 e^{5/2} n^2\right ) \text {Subst}\left (\int \frac {\tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {e}}\right )}{x \left (e+d x^2\right )} \, dx,x,\sqrt [3]{x}\right )}{d^{3/2}}\\ &=\frac {4 a b e n \sqrt [3]{x}}{d}+\frac {8 b^2 e^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right )}{d^{3/2}}+\frac {4 i b^2 e^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right )^2}{d^{3/2}}+\frac {4 b^2 e n \sqrt [3]{x} \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )}{d}-\frac {4 b e^{3/2} n \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{d^{3/2}}+x \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2-\frac {\left (8 i b^2 e^{3/2} n^2\right ) \text {Subst}\left (\int \frac {\tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {e}}\right )}{x \left (i+\frac {\sqrt {d} x}{\sqrt {e}}\right )} \, dx,x,\sqrt [3]{x}\right )}{d^{3/2}}\\ &=\frac {4 a b e n \sqrt [3]{x}}{d}+\frac {8 b^2 e^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right )}{d^{3/2}}+\frac {4 i b^2 e^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right )^2}{d^{3/2}}-\frac {8 b^2 e^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \log \left (2-\frac {2 \sqrt {e}}{\sqrt {e}-i \sqrt {d} \sqrt [3]{x}}\right )}{d^{3/2}}+\frac {4 b^2 e n \sqrt [3]{x} \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )}{d}-\frac {4 b e^{3/2} n \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{d^{3/2}}+x \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2+\frac {\left (8 b^2 e n^2\right ) \text {Subst}\left (\int \frac {\log \left (2-\frac {2}{1-\frac {i \sqrt {d} x}{\sqrt {e}}}\right )}{1+\frac {d x^2}{e}} \, dx,x,\sqrt [3]{x}\right )}{d}\\ &=\frac {4 a b e n \sqrt [3]{x}}{d}+\frac {8 b^2 e^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right )}{d^{3/2}}+\frac {4 i b^2 e^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right )^2}{d^{3/2}}-\frac {8 b^2 e^{3/2} n^2 \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \log \left (2-\frac {2 \sqrt {e}}{\sqrt {e}-i \sqrt {d} \sqrt [3]{x}}\right )}{d^{3/2}}+\frac {4 b^2 e n \sqrt [3]{x} \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )}{d}-\frac {4 b e^{3/2} n \tan ^{-1}\left (\frac {\sqrt {d} \sqrt [3]{x}}{\sqrt {e}}\right ) \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{d^{3/2}}+x \left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )^2+\frac {4 i b^2 e^{3/2} n^2 \text {Li}_2\left (-1+\frac {2 \sqrt {e}}{\sqrt {e}-i \sqrt {d} \sqrt [3]{x}}\right )}{d^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 4 in
optimal.
time = 0.70, size = 296, normalized size = 0.96 \begin {gather*} \frac {-3 b^2 e n^2 \left (e+d x^{2/3}\right ) \sqrt {-\frac {e}{d x^{2/3}}} \, _4F_3\left (1,1,1,\frac {5}{2};2,2,2;1+\frac {e}{d x^{2/3}}\right )+\frac {4 b \sqrt {d} e^2 n \tan ^{-1}\left (\frac {\sqrt {\frac {e}{x^{2/3}}}}{\sqrt {d}}\right ) \left (a-b n \log \left (d+\frac {e}{x^{2/3}}\right )+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )}{\sqrt {\frac {e}{x^{2/3}}}}+d x^{2/3} \left (-4 b^2 e n^2 \sqrt {-\frac {e}{d x^{2/3}}} \left (1+\log \left (\frac {1}{2} \left (1+\sqrt {-\frac {e}{d x^{2/3}}}\right )\right )\right ) \log \left (d+\frac {e}{x^{2/3}}\right )+b^2 e n^2 \sqrt {-\frac {e}{d x^{2/3}}} \log ^2\left (d+\frac {e}{x^{2/3}}\right )+\left (a+b \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right ) \left (4 b e n+a d x^{2/3}+b d x^{2/3} \log \left (c \left (d+\frac {e}{x^{2/3}}\right )^n\right )\right )\right )}{d^2 \sqrt [3]{x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.01, size = 0, normalized size = 0.00 \[\int \left (a +b \ln \left (c \left (d +\frac {e}{x^{\frac {2}{3}}}\right )^{n}\right )\right )^{2}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \log {\left (c \left (d + \frac {e}{x^{\frac {2}{3}}}\right )^{n} \right )}\right )^{2}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\left (a+b\,\ln \left (c\,{\left (d+\frac {e}{x^{2/3}}\right )}^n\right )\right )}^2 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________